{% extends "tj3/tj3.html" %}


{% block content  %} 
<form action="." method="post" enctype="multipart/form-data">

<h2>Task dependency</h2>
<table>
<thead>
<th>TYPE<th>TO TASK<th>GAP DURATION<th>GAP LENGTH<th>ON
</thead>
<tbody>
	<!--- existing dependencies --->
	{% for d in deps %}
<tr>
	<td> {{d.type}}
	<td> {{d.to_task}}
	<td> {{d.gap_duration}}
	<td> {{d.gap_length}}
	<td> {{d.on_what}}
	{% endfor %}

	<!--- new dependency --->
	{{ dep_formset.management_form }}
	{% for d in dep_formset.forms %}
<tr>
	<td> {{d.type}}
	<td> {{d.to_task}}
	<td> {{d.gap_duration}}
	<td> {{d.gap_length}}
	<td> {{d.on_what}}
	{% endfor %}
</tbody>
</table>
<input type="submit" name="command" value="Create new dependency" class="button" />

</form>
{% endblock content %}
